﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplateGridView.aspx.cs"
    Inherits="TemplateGridView" %>

<%@ Register Assembly="Jec.WebControls" Namespace="Jec.CustomControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
    .AspNet-GridView-Bottom
    {
        float:left;
        clear:both;
    }
    </style>
    <style type="text/css">
body
{
    margin-top:0px;
	font-size:14px;
	
}
 a:hover
{
    background-color:#20B2AA;
    text-decoration : none;
}
 a:link
{
	color:#000000;
	 text-decoration : underline;
}
 a:visited
{
	color:#000000;
	 text-decoration : underline;
}
 a:active
{
	color:#000000;
	 text-decoration : underline;
}
.cssClassMouseOut
{
    color:#0000ff;
}
.table1 {
        width: 200px;
        margin: 10px;
        border-style: solid;
        border-color: #656556;
        border-size: 1px;
        border-width: 1px;
}

</style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <br>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnablePaging="true" MaximumRowsParameterName="maximumRows"
                SelectCountMethod="GetPageCount" SelectMethod="GetCustomList" StartRowIndexParameterName="startRowIndex"
                TypeName="Leador.Bussiniess.DataAccess"></asp:ObjectDataSource>
            <cc1:TemplateGridView ID="AjaxGridView1" runat="server" AutoGenerateColumns="False"
                BorderWidth="0" AllowPaging="true" DataSourceID="ObjectDataSource1" ShowFooter="true">
                <Columns>
               
                    <asp:TemplateField>
                        <headerTemplate>
                        <div>
                        </headerTemplate>
                        
                        <itemtemplate>
                        <div style="float:left;width:200px;">这里是第<%#Eval("RowNumber") %>条记录
                        
                      </div>
                        </itemtemplate>
                        <footerTemplate>
                        </div>
                        </footerTemplate>
                    </asp:TemplateField>
                  
                </Columns>
            </cc1:TemplateGridView>
        </div>
    </form>
</body>
</html>
